<?php
namespace jy_sort;
defined('BY_JYA') or exit('error');
/*
	本插件：$this->model('model')->方法名();
	其他地方调用：model('jy_sort/model')->方法名();
*/
class model extends \plugin{
	public function uptoptime(){
		pdo_update('jy_sort_item',array('ishot'=>0),array('ishot'=>1,'topendtime <='=>TIMESTAMP,'uniacid'=>$_SESSION['uniacid']));
		return true;
	}
}